package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Created on 2017/10/18.
 * @author 朱坤涛
 */
@Entity(value = "PearlCart",noClassnameStored = true)
public class PearlCart extends BaseMongoEntity{
    private Long memberId; //收货人id
    private Long productId; //商品Id
    private Integer num; //数量
    private Integer cartType; //购物车数据类型。1.购物车加入，2、立即购买加入

    public PearlCart() {
    }

    public PearlCart(Long memberId, Long productId, Integer num, Integer cartType) {
        this.memberId = memberId;
        this.productId = productId;
        this.num = num;
        this.cartType = cartType;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getCartType() {
        return cartType;
    }

    public void setCartType(Integer cartType) {
        this.cartType = cartType;
    }
}
